﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第1个数字");
            int sum1 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入第2个数字");
            int sum2 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入运算符");
            string fuhao = Console.ReadLine();

            if (fuhao=="+")
            {
                Jia sum11 = new Jia(sum1,sum2);
                sum11.DisplayResult();
            }else
            if (fuhao == "-")
            {
                Jian sum11 = new Jian(sum1, sum2);
                sum11.DisplayResult();
            }
            else
            if (fuhao == "*")
            {
                Cheng sum11 = new Cheng(sum1, sum2);
                sum11.DisplayResult();
            }
            else
            if (fuhao == "/")
            {
                Chu sum11 = new Chu(sum1, sum2);
                sum11.DisplayResult();
            }
        }
    }
}
